FROM registry.cn-shenzhen.aliyuncs.com/lain_wms/mini-maven:3.6.6
LABEL maintainer="Lain <7thmist.store>"
RUN  mkdir -p /usr/project/wx/code && mkdir -p /usr/project/wx/server && mkdir -p /usr/project/wx/logs
WORKDIR /usr/project/wx/server
ADD . /usr/project/wx/code
RUN cd /usr/project/wx/code && mvn clean install -DskipTests && mv target/wx-service-exec.jar /usr/project/wx/server && cd /usr/project/wx/server
RUN apk add --no-cache ca-certificates tzdata
ENV TZ=Asia/Shanghai
EXPOSE 9090
ENTRYPOINT [ "nohup", "java", "-jar", "wx-service-exec.jar", ">","/usr/project/wx/logs/wx.log", "&" ]
